<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    div{
      width: 100px;
      height: 100px;
      border: 1px solid black;
      background-color: #cccccc;
      position: absolute;
    }
    #d1{
      transform: translate(50px);
      background-color:rgba(255,0,0,0.2) ;
    }
    #d2{
      transform: translate(90px, 90px);
      background-color:rgba(0,255,0,0.2) ;
    }
  </style>
</head>
<body>
  <div id="d0">
    <div id="d1">
  
    </div>
    <div id="d2">
  
    </div>
  </div>
  
</body>
</html>